<?php
namespace Home\Controller;
use Common\Controller\HomeBaseController;
use Common\Logic\LoginLogic;

class AccountController extends HomeBaseController {
	
	public function __construct(){
		parent::__construct();
        $this->LoginLogic = new LoginLogic();
	}

	/**
	 * 登录
	 */
	public function homeLogin(){
		$mobile = I('post.tel');
		$password = I('post.pwd');

		$userinfo = $this->LoginLogic->checkInfo($mobile, $password);
		
		$this->ajaxreturn($userinfo);
	}
}